package TransactionImplementation

import (
	"PaySalary/DataBase"
	"PaySalary/TransactionApplication"
)

type DeleteEmployeeTransaction struct {
	TransactionApplication.Transaction
	itsEmployeeId int
}

func (d *DeleteEmployeeTransaction)NewDeleteEmployeeTransaction(empid int)  {
	d.itsEmployeeId = empid
}

func (d *DeleteEmployeeTransaction)Execute()  {
	DataBase.PayrollDatabase.DeleteEmployee(d, d.itsEmployeeId)
}